var app = app || (function() {

    var myGame = new Phaser.Game(this, 'game', 800, 480, init, create, update);
    var pelota;

    function create() {
        pelota = Phaser.sprite;
    }

    function update() {

    }
    function init() {
        myGame.loader.addTextureAtlas('entities', 'img/entities.png', 'assets/textures/entities.txt');
        myGame.loader.load();
    }
    return {
        iniciar: init
    };
}());

//app.iniciar();